﻿using Basic.FormRemoteModel;
using SqlSugar;

namespace Basic.FormModel.QueryColumn
{
    public class QueryCol
    {
        public long Id { get; set; }

        public long TableId { get; set; }

        public string ColName
        {
            get;
            set;
        }
        public PhyColShowMode ShowMode { get; set; }
        public long? DictId { get; set; }
        public PhyTableDataType DataType
        {
            get;
            set;
        }
        /// <summary>
        /// 功能类型
        /// </summary>
        public FormColumnFuncType FuncType
        {
            get;
            set;
        }
        /// <summary>
        /// 小数位精度
        /// </summary>
        public short? Precision
        {
            get;
            set;
        }
        public string DefValue { get; set; }

        public bool IsNull { get; set; }
        [SugarColumn(IsJson = true)]
        public Dictionary<string, object> ColumnSet
        {
            get;
            set;
        }
    }
}
